//
//  SampuxWiFiDocumentVC.m
//  Sampux
//
//  Created by rzm on 16/7/11.
//  Copyright © 2016年 rzm. All rights reserved.
//

#import "SampuxWiFiGuideViewController.h"
#import "SampuxWiFiGuideView.h"
#import "SampuxDeployWiFiViewController.h"

@interface SampuxWiFiGuideViewController ()

@end

@implementation SampuxWiFiGuideViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createBackBarButtonItem];

    SampuxWiFiGuideView *documentView = [[SampuxWiFiGuideView alloc]initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height)];
    [self.view addSubview:documentView];
    documentView.nextBlock = ^()
    {
        SampuxDeployWiFiViewController *wifiVC = [[SampuxDeployWiFiViewController alloc]init];
        wifiVC.numStr = self.numbStr;
        [self.navigationController pushViewController:wifiVC animated:YES];
    };

}

- (void)setNumbStr:(NSString *)numbStr
{
    _numbStr = numbStr;
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];
    SampuxCustomNavController *nav = (SampuxCustomNavController *)self.navigationController;
    nav.titleStr = @"设备入网向导";
}

@end
